import request from '@/utils/request'

// 查询扫描服务列表11111111111111111111111
export function listServer(query) {
  return request({
    url: '/system/server/list',
    method: 'get',
    data: query
  })
}

// 查询扫描服务详细
export function getServer(id) {
  return request({
    url: '/system/server/' + id,
    method: 'get'
  })
}

// 新增扫描服务
export function addServer(data) {
  return request({
    url: '/system/server',
    method: 'post',
    data: data
  })
}

// 修改扫描服务
export function updateServer(data) {
  return request({
    url: '/system/server',
    method: 'put',
    data: data
  })
}

// 删除扫描服务
export function delServer(id) {
  return request({
    url: '/system/server/' + id,
    method: 'delete'
  })
}
